<%--
  Created by IntelliJ IDEA.
  User: ASUS
  Date: 2022/8/30
  Time: 15:49
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>用户注册</title>
</head>
<body>

<%
    Object error = request.getAttribute("error");
    if(error != null) {
%>
<h2 style="color:red"><%= error %></h2>
<%
    }
%>

<form action="user?code=register" method="post">
    <table border="1px" cellspacing="0" cellpadding="10px" align="center">
        <tr align="center">
            <h2>用户注册</h2>
        </tr>
        <tr>
            <td>姓名：</td>
            <td><input type="text" name="username"></td>
        </tr>
        <tr>
            <td>密码：</td>
            <td><input type="password" name="password"></td>
        </tr>
        <tr>
            <td>性别：</td>
            <td>
                <input type="radio" name="sex" value="男">男
                <input type="radio" name="sex" value="女">女
            </td>
        </tr>
        <tr>
            <td>手机号：</td>
            <td><input type="text" name="phone"></td>
        </tr>
        <tr>
            <td>邮箱：</td>
            <td><input type="text" name="email"></td>
        </tr>
        <tr>
            <td colspan="2" align="center">
                <button type="submit">注册</button>
                <button type="reset">重置</button>
            </td>
        </tr>
    </table>
</form>

</body>
</html>
